//校验手机号
 const validTel= (val) => {
  return val.length == 11 && /^((13|14|15|17|18)[0-9]{1}\d{8})$/.test(val);

}
//不为空
 const validNotEmpty = (val) => {
  return val.trim()!=='';
}

//验证码校验
 const identifyingCode = (val) => {
  return val.trim()!==''&&val.trim().length==6;
}


//重复密码
 const validPassword = (password1,password2) => {
  return password1.trim()==password2.trim();
}

export default {
  validTel,
  validNotEmpty,
  identifyingCode,
  validPassword
}
